package src.ocrs.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.VerticalSplitPanel;


public class MainPage extends Composite {

	public MainPage() {
		
		//BODY SET UP
//		HorizontalPanel widgePanel = new HorizontalPanel();
//		initWidget(widgePanel);
//		widgePanel.setSize("459px", "212px");
		
		VerticalPanel verticalPanel = new VerticalPanel();
		initWidget(verticalPanel);
		verticalPanel.setSize("398px", "209px");
		//widgePanel.add(verticalPanel);
		
		//view 
		Label scheduleLabel = new Label("View Schedule");
		verticalPanel.add(scheduleLabel);
		scheduleLabel.setStyleName("gwt-TableText");
		
		FlexTable flexTable = new FlexTable();
		verticalPanel.add(flexTable);
		
		Label lblId = new Label("ID");
		flexTable.setWidget(0, 0, lblId);
		
		Label lblName = new Label("Name");
		flexTable.setWidget(0, 1, lblName);
		
		Label lblDate = new Label("Date");
		flexTable.setWidget(0, 2, lblDate);
		
		Label lblTime = new Label("Time");
		flexTable.setWidget(0, 3, lblTime);
		
		Label lblLocation = new Label("Location");
		flexTable.setWidget(0, 4, lblLocation);
		
		//actions
		FlexTable linksTable = new FlexTable();
		verticalPanel.add(linksTable);
		linksTable.setStyleName("gwt-Table");
		
				Label browseClasses = new Label("Browse Current Semester Classes");
				browseClasses.setStyleName("gwt-TableText");
				linksTable.setWidget(0, 0, browseClasses);
				Label editSchedule = new Label("Edit My Class Schedule");
				editSchedule.setStyleName("gwt-TableText");
				linksTable.setWidget(0, 1, editSchedule);
				Label browseCatalog = new Label("Browse UMBC Course Catalog");
				browseCatalog.setStyleName("gwt-TableText");
				linksTable.setWidget(1, 0, browseCatalog);
				Label help = new Label("Contact Admin for Help or Questions");
				help.setStyleName("gwt-TableText");
				linksTable.setWidget(1, 1, help);
		linksTable.addCell(0);
		
		
		
	}

}
